package com.jinguanjia.stock;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;


@EnableDiscoveryClient
@EnableEurekaServer
@SpringBootApplication
public class ServerApp  extends SpringBootServletInitializer {
	
	private static final Logger logger = LoggerFactory.getLogger(ServerApp.class);
	
	public static void main(String[] args) {
		SpringApplication springApplication = new SpringApplication(ServerApp.class);
		springApplication.run(args);
		logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>SPRINGBOOT LOADED<<<<<<<<<<<<<<<<<<<<<<<<<<<");
	}
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ServerApp.class);
    }
	


	
}